home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
rjs.lha
/
RJS
/
tests
/
rload.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-14
|
583b
|
35 lines
#include <iostream.h>
#include <stdio.h>
#include <osfcn.h>
#include <libc.h>
#include "RJS/Transport.h"
#include "RJS/NDR.h"
#include "RJS/KernelVar.h"
#include "XKernelVar.h"
int main(int argc, char *argv[])
{
if (argc!=3) { cerr << "usage: " << argv[0] << " server port" << endl;exit(1); }
InetStream server;
InetAddress address(argv[1],atoi(argv[2]));
Xkern_loadav load;
NDR_receive ndr;
char buffer[1024];
ndr.init(buffer,1024);
server.socket_client(address);
server >> ndr;
ndr >> load;
cout << argv[1] << ":" << load << endl;
exit(0);
}